package mka.puzzle.shape;

import java.util.ArrayList;

import mka.puzzle.shape.SimpleShape;

/***
 * ShapeList
 * @version 20131124
 * 
 * @author NguyenBB
 */
public class SimpleShapeList {

	private ArrayList<SimpleShape> shapeList;

	public SimpleShapeList() {
		super();
		shapeList = new ArrayList<SimpleShape>();
	}

	public ArrayList<SimpleShape> getShapeList() {
		return shapeList;
	}

	public void setShapeList(ArrayList<SimpleShape> shapeList) {
		this.shapeList = shapeList;
	}

	/**
	 * addShape
	 * 
	 * @param shape
	 *            Shape
	 */
	public void addShape(SimpleShape shape) {
		shapeList.add(shape);
	}
	
	public void deleteShape(SimpleShape shape) {
		for (SimpleShape s : shapeList) {
			if (s.equals(shape)) {
				shapeList.remove(s);
			}
		}
	}
}
